package com.jiayang.webview

import com.jiayang.base.BaseApplication
import com.jiayang.base.loadsir.*
import com.jiayang.loadsir.core.LoadSir


/**
 * @ClassName MyWebViewApplication
 * @Author JIAYANG
 * @Date 2022/4/24 21:23
 * @Email 1354856871@qq.com
 */
class MyWebViewApplication : BaseApplication() {

    override fun onCreate() {
        super.onCreate()

        LoadSir.beginBuilder().addCallback(ErrorCallback()).addCallback(EmptyCallback())
            .addCallback(LoadingCallback()).addCallback(TimeoutCallback())
            .addCallback(CustomCallback()).setDefaultCallback(LoadingCallback::class.java).commit()



    }
}